import React from 'react';
import BuildsResultTag from 'components/buildsResultTag';

export default class TbBuildResultTag extends React.Component {
  render() {
    const { projectId, commitId, webApp } = this.props;
    return (
      <BuildsResultTag
        container={{
          type: 'devops', // codeup工程里只有这里是devops
          target: 'commit', // 可选值为 commit 和 merge_request
          id: commitId, // commit 或 merge_request 的 id
          projectId, // 仓库 id
        }}
        webApp={webApp}
      />
    );
  }
}
